// JavaScript Document
/*动态判断手机分辨率适配*/
/*(function (doc, win) {
          var docEl = doc.documentElement,
            resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
            recalc = function () {
              var clientWidth = docEl.clientWidth;
              if (!clientWidth) return;
              docEl.style.fontSize = 16 * (clientWidth / 320) + 'px';
            };

          if (!doc.addEventListener) return;
          win.addEventListener(resizeEvt, recalc, false);
          doc.addEventListener('DOMContentLoaded', recalc, false);
        })(document, window);*/

$(document).ready(function(){
	//返回
	$(".return").click(function(){
		history.back(-1);
	});
	//弹出隐藏菜单
	$(".upload_bth",this).click(function(){
		$(".reveal-modal-bg").fadeIn(100);
		$('.disnav').animate({bottom:'0rem'},300);
	});
	$(".cancel",this).click(function(){
		$(".reveal-modal-bg").fadeOut(100);
		$('.disnav').animate({bottom:'-22rem'},300);
	});
	//开关按钮
	$('.Push_bth').toggle(function(){
		$(".pushall").animate({left:'2rem'},400);
		$(".Push").animate({width:'4rem'},400);
	},function(){
		$(".pushall").animate({left:'.2rem'},300);
		$(".Push").animate({width:'0px'},300);
	});
});